﻿using UnityEngine;

namespace LuaFramework {

    /// <summary>
    /// </summary>
    public class Main : MonoBehaviour
    {
        public static Main Instance;

        private void Awake()
        {
            Instance = this;
        }

        void Start()
        {
#if !TEST
#if UNITY_ANDROID
            if (System.IO.File.Exists(System.IO.Path.Combine(Application.persistentDataPath, "whosyourdaddy")))
#elif UNITY_IOS
                if (System.IO.File.Exists(System.IO.Path.Combine(Application.streamingAssetsPath, "whosyourdaddy")))
#endif
            {
#endif
                GetComponent<ShowFPS>().enabled = true;
                GameObject.Instantiate(Resources.Load("Reporter"));
#if !TEST
            }
#endif

            AppFacade.Instance.StartUp();   //启动游戏

        }
    }
}